﻿<CodeSnippetTabbed DocLink="https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxPivotGrid-1#bind-to-data">
    <CodeSnippetTabPage Text="Razor">@(@"<DxPivotGrid Data=""@largeDataSource""
             ShowPager=""true""
             PageSize=""10""
             CssClass=""mw-1100"">
    <DxPivotGridField Field=""@nameof(Sale.StoreName)"" Caption=""Store"" Area=""PivotGridFieldArea.Row"" />
    <DxPivotGridField Field=""@nameof(Sale.DateKey)"" GroupInterval=""PivotGridGroupInterval.Year"" Caption=""Year"" Area=""PivotGridFieldArea.Column"" />
    <DxPivotGridField Field=""@nameof(Sale.SalesAmount)"" Caption=""Amount"" Area=""PivotGridFieldArea.Data"" SummaryType=""PivotGridSummaryType.Sum"">
        <DataTemplate>@string.Format(""{0:c0}"", context)</DataTemplate>
    </DxPivotGridField>
    <DxPivotGridField Field=""@nameof(Sale.Id)"" Caption=""Count"" Area=""PivotGridFieldArea.Data"" SummaryType=""PivotGridSummaryType.Count"">
        <DataTemplate>@string.Format(""{0:n0}"", context)</DataTemplate>
    </DxPivotGridField>
</DxPivotGrid>")</CodeSnippetTabPage>
</CodeSnippetTabbed>
